﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using ABC.Domain.Entities;

namespace ABC.Controllers.ViewModels.My
{
    public class MyTicketsViewModel : BaseViewModel
    {
        public List<EditTicket> Tickets { get; set; }

        public List<SelectListItem> Statuses { get; set; }

        public string Status { get; set; }

        public int PageNumber { get; set; }

        public int PageCount { get; set; }

        public int PageSize { get; set; }

        public List<SelectListItem> ListForPageSize { get; set; }

        public MyTicketsViewModel()
        {
            Tickets = new List<EditTicket>();
            ListForPageSize = new List<SelectListItem>
                                  {
                                      new SelectListItem {Text = "15", Value = "15"},
                                      new SelectListItem {Value = "30", Text = "30"},
                                      new SelectListItem {Text = "50", Value = "50"}
                                  };
            Statuses = new List<SelectListItem>
                           {
                               new SelectListItem{Text = "Все", Value  = ""},
                               new SelectListItem{Text = "В работе", Value  = "В работе"},
                               new SelectListItem{Text = "Отказ", Value  = "Отказ"},
                           };
        }
    }
}
